import request from '@/utils/request'

// 查询资源申请登记列表
export function listApply(query) {
  return request({
    url: '/registration/apply/list',
    method: 'get',
    params: query
  })
}

// 查询资源申请登记详细
export function getApply(rId) {
  return request({
    url: '/registration/apply/' + rId,
    method: 'get'
  })
}

// 新增资源申请登记
export function addApply(data) {
  return request({
    url: '/registration/apply',
    method: 'post',
    data: data
  })
}

// 修改资源申请登记
export function updateApply(data) {
  return request({
    url: '/registration/apply',
    method: 'put',
    data: data
  })
}

// 删除资源申请登记
export function delApply(rId) {
  return request({
    url: '/registration/apply/' + rId,
    method: 'delete'
  })
}
